from rest_framework.throttling import SimpleRateThrottle


class MyThrottling(SimpleRateThrottle):
    scope = 'lazy_ping_bookkeeping'
    def get_cache_key(self, request, view):
        self.get_ident(request)
        return request.headers.get('token')





